package com.fqgj.xjd.user.client.enums;

/**
 * kyc类型
 *
 * @author zsp
 */
public enum UserKycTypeEnum {
    AADHAAR("1", "MASKED E-AADHAAR"), // maskedEAadhaar
    PASSPORT("2", "PASSPORT"), // passport
    DRIVER_LICENSE("3", "DRIVER_LICENSE"), //dl
    VOTER_ID("4", "VOTER_ID"); //voter

    String type;
    String desc;

    UserKycTypeEnum(String type) {
        this.type = type;
    }

    UserKycTypeEnum(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public String getType() {
        return type;
    }

    public UserKycTypeEnum setType(String type) {
        this.type = type;
        return this;
    }

    public static UserKycTypeEnum getEnumByStatus(String type) {
        UserKycTypeEnum userKycTypeEnum = null;
        for (UserKycTypeEnum enumObj : UserKycTypeEnum.values()) {
            if (enumObj.getType().equals(type)) {
                userKycTypeEnum = enumObj;
                break;
            }
        }
        return userKycTypeEnum;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
